package com.hangxiang.approval.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hangxiang.approval.common.IntegerCommon;
import com.hangxiang.approval.common.SecondMenuCommon;
import com.hangxiang.approval.common.SecondMenuInsertCommon;
import com.hangxiang.approval.common.SecondMenuUpdateCommon;
import com.hangxiang.approval.entity.SecondMenu;
import com.hangxiang.approval.vo.SecondMenuVo;

import java.util.List;

/**
 * (SecondMenu)表服务接口
 *
 * @author makejava
 * @since 2020-11-25 20:04:11
 */
public interface SecondMenuService extends IService<SecondMenu> {

    /**
     * 通过ID查询单条数据
     *
     * @param common 主键
     * @return 实例对象
     */
    SecondMenuVo queryById(IntegerCommon common);


    /**
     * 新增数据
     *
     * @param secondMenuInsertCommon 实例对象
     * @return 实例对象
     */
    Integer insertSecondMenu(SecondMenuInsertCommon secondMenuInsertCommon);

    /**
     * 修改数据
     *
     * @param secondMenuUpdateCommon 实例对象
     * @return 实例对象
     */
    Integer updateSecondMenu(SecondMenuUpdateCommon secondMenuUpdateCommon);


    List<SecondMenuVo> selectAllSecondMenu(SecondMenuCommon common);
}